[NTG-context] Re: Bug between \definealternativestyle and makeup?

2023-08-27 Thread Alex Leray
Ouch, thanks for opening my eyes! Le 27/08/23 à 21:42, Mikael Sundqvist a écrit : Remove the period: \definecharacterkerning [mykerning] [factor=0.15] \definealternativestyle[mystyle][{\setcharacterkerning[mykerning]}] \definemakeup [title] [doublesided=empty, pagestate=start] \starttext

[NTG-context] Re: Bug between \definealternativestyle and makeup?

2023-08-27 Thread Mikael Sundqvist
Remove the period: \definecharacterkerning [mykerning] [factor=0.15] \definealternativestyle[mystyle][{\setcharacterkerning[mykerning]}] \definemakeup [title] [doublesided=empty, pagestate=start] \starttext \starttitlemakeup Title \stoptitlemakeup \stoptext /Mikael On Sun, Aug 27, 2023 at 9:32

[NTG-context] Bug between \definealternativestyle and makeup?

2023-08-27 Thread Alex Leray
Hi, I found that using \definealternativestyle in conjunction with Makeup insert a page before my Makeup page. Any idea? Thanks * * * \definecharacterkerning [mykerning] [factor=0.15] \definealternativestyle[mystyle][{\setcharacterkerning[mykerning]}]. %%% BUG!!! \definemakeup [title

Re: [NTG-context] Horizontal spacing

2022-11-21 Thread Max Chernoff via ntg-context
Hi Steffen, > But how can I adjust in general the horizontal distance between glyphs > (I don't mean \kern, I am looking for a general setup)? You probably want \definecharacterkerning. See https://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf#page=171 for details on how

Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-07 Thread Joey McCollum via ntg-context
ont >[MyPartFont] >[Serif at 24pt] >[line=36pt] > > \setuppagenumbering >[alternative=doublesided, > location=] > > \setupinterlinespace >[line=18pt] > > \definepagebreak >[blankpagebreak] >[yes,header,footer,right] > > \definehead &g

Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-07 Thread Wolfgang Schuster via ntg-context
d,12pt] \definefont [MyPartFont] [Serif at 24pt] [line=36pt] \setuppagenumbering [alternative=doublesided, location=] \setupinterlinespace [line=18pt] \definepagebreak [blankpagebreak] [yes,header,footer,right] \definehead [MyPart] [part] \definecharacterkerning [mypartkerni

[NTG-context] Extra space when \setcharacterkerning is used in enumeration

2020-06-12 Thread Mikael Sundqvist
zes inside square roots and fractions seem to be gone. % Testfile starts here \setupbodyfont[stixtwo,10bp] \definemeasure[myitemwidth][26bp] \definemeasure[myindent][12bp] \setupindenting[yes,\measure{myindent}] \definecharacterkerning[sats][factor=0.1] \define[1]\vakuum{\hskip\measur

Re: [NTG-context] Abstracting styles

2019-11-27 Thread Hans Hagen
: Source Serif Semibold Emphasis: Source Serif Regular, smcp=yes, 8% letter-spacing What is the most straightforward way should I load the fonts and set the ‘styles’? Something: \definefontfamily[mainface][serif][Source Serif Pro] \setupbodyfont[mainface] \definecharacterkerning [LittleMoreA

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-11 Thread Rik Kabel
oud about it, but it can be done. Do you think it can be better done inside ConTeXt? I nearly managed to do it in ConTeXt, but I can't create the "" elements right (the "new_dk_element" function is wrong): did you play with \definefontfeature[whatever][keepligatures=auto] \

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-11 Thread Rik Kabel
o you think it can be better done inside ConTeXt? I nearly managed to do it in ConTeXt, but I can't create the "" elements right (the "new_dk_element" function is wrong): did you play with \definefontfeature[whatever][keepligatures=auto] \definecharacterkerning

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-11 Thread mf
did you play with \definefontfeature[whatever][keepligatures=auto] \definecharacterkerning [extrakerning] [factor=0.125,features=whatever] \starttext     \setcharacterkerning[extrakerning]     effe fietsen \stoptext Great! Thanks! This now works: \definefontfeature[frac][frac=yes

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-11 Thread Hans Hagen
t? I nearly managed to do it in ConTeXt, but I can't create the "" elements right (the "new_dk_element" function is wrong): did you play with \definefontfeature[whatever][keepligatures=auto] \definecharacterkerning [extrakerning] [factor=0.125,features=whatever] \start

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-11 Thread mf
  append( new_dt, s )   end     until not b   else     append( new_dt, child )   end     end     t.dt = new_dt   end   return t end function xml.functions.textWithKerning( t )   local kt = saveLigaturesFromKerning( t )   lxml.flush( kt ) end \stopluacode \definecharacterkerning[narrow][fa

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-10 Thread Hans Hagen
t;¼" glyph (with "frac" feature switched on) "1", [kerning], "/", [kerning], "4" => distinct "1", "/", "4" glyphs (always with "frac" feature switched on) MWE: \definecharacterkerning[narrow][factor=-.015

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-10 Thread mf
An example of local correction, but it's not automatic: \definecharacterkerning[narrow][factor=-.02] \definecharacterkerning[wide][factor=.02] \definefontfeature[frac][frac=yes] \def\Narrow#1{\bgroup\setcharacterkerning[narrow]#1\egroup} \def\Wide#1{\bgroup\setcharacterkerning[wide]#1\egroup

[NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-10 Thread mf
feature switched on) "1", [kerning], "/", [kerning], "4" => distinct "1", "/", "4" glyphs (always with "frac" feature switched on) MWE: \definecharacterkerning[narrow][factor=-.015] \definecharacterkerning[wide][fa

[NTG-context] Letterspacing for bodyfont :(

2018-02-19 Thread Henning Hraban Ramm
Ahoi, the designer of a corporate design I must use insists to have the bodyfont spaced by 4%, italics by 5%, in footnotes 13/14%. I got as far as \definecharacterkerning[default][factor=.04] \definecharacterkerning[default-italic][factor=.05] \definecharacterkerning[footnotes][factor=.13

Re: [NTG-context] Letterspacing

2016-05-29 Thread Hans Hagen
in the documentation, maybe it doesn't exist: I simply don't know and don't see a way to find out. \stretched is not an answer. \starttext some words \WORD{some words} \definecharacterkerning[mine][factor=0.5] \definecharacterkerning[less][factor=0.05] \definecharacterkerning[more][factor=0.1

Re: [NTG-context] Adjusting Kerning/Spacing between Letter

2016-05-27 Thread Hans Hagen
f text a little. Any hints on how I could do that locally, that is without adjusting the entire font. \starttext \definecharacterkerning[tight][factor=-.5] test {\tt \setcharacterkerning[tight]tight} test \stoptext (Btw, there is a narrow monospaced lm font) I implemented it by redefini

Re: [NTG-context] Adjusting Kerning/Spacing between Letter

2016-05-25 Thread Wolfgang Schuster
Meer, Hans van der <mailto:h.vanderm...@uva.nl> 25. Mai 2016 um 09:44 I implemented it by redefining \tt: \definecharacterkerning[tight][factor=-.075] \let\oldtt=\tt \def\tt{\setcharacterkerning[tight]\oldtt} However, I find this a bit of a kludge. But opinions may differ, of cours

Re: [NTG-context] Adjusting Kerning/Spacing between Letter

2016-05-25 Thread Meer, Hans van der
f text a little. Any >> hints on how I could do that locally, that is without adjusting the entire >> font. > > \starttext >\definecharacterkerning[tight][factor=-.5] > >test {\tt \setcharacterkerning[tight]tight} test > > \stoptext > > (

Re: [NTG-context] Adjusting Kerning/Spacing between Letter

2015-01-02 Thread Hans Hagen
\definecharacterkerning[tight][factor=-.5] test {\tt \setcharacterkerning[tight]tight} test \stoptext (Btw, there is a narrow monospaced lm font) Thank you, Malte. ___ If your question is of interest to others

[NTG-context] Adjust the tracking

2012-05-17 Thread Marco
Hi everybody, how does one adjust the tracking of a font? The command \definecharacterkerning does almost what I need. However, it breaks the ligatures. \definecharacterkerning [track] [factor=.01] \starttext \showboxes \switchtobodyfont [72pt] final suffocating flange % all ligatures lost

Re: [NTG-context] Adjust the tracking

2012-05-17 Thread Hans Hagen
On 16-5-2012 20:52, Marco wrote: Hi everybody, how does one adjust the tracking of a font? The command \definecharacterkerning does almost what I need. However, it breaks the ligatures. sure, because as soon as one starts adding extra space between characters ligatures make no sense any

Re: [NTG-context] Adjust the tracking

2012-05-17 Thread Marco
On 2012-05-17 Hans Hagen pra...@wxs.nl wrote: how does one adjust the tracking of a font? The command \definecharacterkerning does almost what I need. However, it breaks the ligatures. sure, because as soon as one starts adding extra space between characters ligatures make no sense any

Re: [NTG-context] Reducing inter-character spacing?

2012-04-24 Thread Marco
On 2012-04-24 Mari Voipio mari.voi...@iki.fi wrote: How can I reduces inter-character spacing in a font? \definecharacterkerning [narrow] [factor=-.1] \definecharacterkerning [wide] [factor=.2] \starttext \setcharacterkerning [narrow] \input knuth \setcharacterkerning [wide] \input knuth

Re: [NTG-context] Reducing inter-character spacing?

2012-04-24 Thread Mari Voipio
On Tue, Apr 24, 2012 at 18:20, Marco net...@lavabit.com wrote: \definecharacterkerning [narrow] [factor=-.1] \starttext \setcharacterkerning [narrow] \input knuth \stoptext This did the trick - and -.1 was just enough to dense the text up but not into total mess (-.2 was definitely Far

Re: [NTG-context] Tracking in MKII and MKIV

2011-08-16 Thread Hans Hagen
] \setuplayout[location=middle,marking=off] \definefont[LabelFont][Serif sa 0.583] \definecharacterkerning [mykerning] [factor=.5] \startbuffer THIS BOOK CONTAINS 988 TWEETS POSTED TO TWITTER BY LADYGAGA FROM MARCH 27, 2008 TO AUGUST 5, 2011. IT WAS PUBLISHED ON DEMAND ON AUGUST 14, 2011

Re: [NTG-context] structure head alignment nullifies spaceskip

2011-03-06 Thread Philipp Gesang
? The long way (across a couple of definition files): ··8· \definecharacterkerning[capitals] \setupcharacterkerning [capitals] [factor=.05] \unexpanded\def\cap{\setcharacterkerning[capitals]} \def\broadspacing{\dontleavehmode\spaceskip

Re: [NTG-context] How do I stretch text in header?

2010-06-29 Thread Oliver Heins
«: Do you use Mark 2 or Mark 4? Mark 4. I found a reasonable working solution: \definecharacterkerning[extra] \setupcharacterkerning[extra][factor=0.25] \setupheader[] \setupheadertexts[\setups{header}] \startsetups[header] \start \setcharacterkerning[extra] \hfill {\sc

Re: [NTG-context] How do I stretch text in header?

2010-06-29 Thread Wolfgang Schuster
the section title, but instead the phrase »section«: Do you use Mark 2 or Mark 4? Mark 4. I found a reasonable working solution: \definecharacterkerning[extra] \setupcharacterkerning[extra][factor=0.25] \setupheader[] \setupheadertexts[\setups{header}] \startsetups[header

Re: [NTG-context] TeX Gyre Heros Condensed missing in typescript / letterspacing

2010-06-23 Thread Wolfgang Schuster
found \stretchednormalcase, but I'd like to enable it per-font. This is currently not possible but you can try this: \definecharacterkerning[extraspace][factor=.05] \setcharacterkerning[extraspace] \starttext ... \stoptext Wolfgang

Re: [NTG-context] TeX Gyre Heros Condensed missing in typescript / letterspacing

2010-06-23 Thread Otared Kavian
Hi Wolfgang, Hraban, Just testing the feature suggested by Wolfgang, I ran into a « fatal error » on one test file, which I could nail down to this minimal example: \definecharacterkerning[extraspace][factor=.05] \setcharacterkerning[extraspace] \starttext affine, fil, affligeant % -- afflig

Re: [NTG-context] TeX Gyre Heros Condensed missing in typescript / letterspacing

2010-06-23 Thread Wolfgang Schuster
Am 23.06.2010 um 19:44 schrieb Otared Kavian ota...@gmail.com: Hi Wolfgang, Hraban, Just testing the feature suggested by Wolfgang, I ran into a « fatal error » on one test file, which I could nail down to this minimal example: \definecharacterkerning[extraspace][factor=.05

Re: [NTG-context] TeX Gyre Heros Condensed missing in typescript / letterspacing

2010-06-23 Thread Hans Hagen
On 23-6-2010 7:44, Otared Kavian wrote: Hi Wolfgang, Hraban, Just testing the feature suggested by Wolfgang, I ran into a « fatal error » on one test file, which I could nail down to this minimal example: \definecharacterkerning[extraspace][factor=.05] \setcharacterkerning[extraspace

Re: [NTG-context] TeX Gyre Heros Condensed missing in typescript / letterspacing

2010-06-23 Thread Hans Hagen
On 23-6-2010 7:44, Otared Kavian wrote: Hi Wolfgang, Hraban, Just testing the feature suggested by Wolfgang, I ran into a « fatal error » on one test file, which I could nail down to this minimal example: \definecharacterkerning[extraspace][factor=.05] \setcharacterkerning[extraspace

Re: [NTG-context] Microtype in ConTeXt

2010-03-25 Thread Hans Hagen
microtype does (nor time to look into it) but you can just define a command that switches the font and enables intercharacter spacing, something \definecharacterkerning[mykerning] \setupcharacterkerning[mykerning][\c!factor=.125] \def\MySc {\groupedcommand {\sc\setcharacterkerning[mykerning

Re: [NTG-context] Microtype in ConTeXt

2010-03-25 Thread Wolfgang Schuster
that switches the font and enables intercharacter spacing, something \definecharacterkerning[mykerning] \setupcharacterkerning[mykerning][\c!factor=.125] \def\MySc {\groupedcommand {\sc\setcharacterkerning[mykerning]} {}} Who about something like (pseudocode) \definecharacterkerning

Re: [NTG-context] Microtype in ConTeXt

2010-03-25 Thread Hans Hagen
just define a command that switches the font and enables intercharacter spacing, something \definecharacterkerning[mykerning] \setupcharacterkerning[mykerning][\c!factor=.125] \def\MySc {\groupedcommand {\sc\setcharacterkerning[mykerning]} {}} Who about something like (pseudocode

Re: [NTG-context] Microtype in ConTeXt

2010-03-25 Thread Wolfgang Schuster
Am 25.03.10 16:21, schrieb Hans Hagen: Who about something like (pseudocode) \definecharacterkerning[letterspace] \def\letterspace {\bgroup \dosingleempty\doletterspace} \def\doletterspace[#1]#2% use \groupedcommand? {\iffirstargument \setupcharacterkerning[letterspace][factor=\ctxlua

Re: [NTG-context] negative kerning

2010-01-19 Thread Horacio Suarez
, 2010, at 6:46 PM, Wolfgang Schuster wrote: MkIV only: \definecharacterkerning[packed] \setupcharacterkerning[packed][factor=-.125] \starttext \input knuth \start \setcharacterkerning[packed] \input knuth \stop \stoptext Wolfgang Wow

Re: [NTG-context] negative kerning

2010-01-19 Thread Vyatcheslav Yatskovsky
-context/tex/context/base/typo-krn.lua:121: attempt to index local 'before' (a nil value) . l.11 ? \definecharacterkerning[packed] \setupcharacterkerning[packed][factor=-.125] \starttext \input knuth \start \setcharacterkerning[packed] \input knuth \stop \stoptext What have I

Re: [NTG-context] negative kerning

2010-01-18 Thread Wolfgang Schuster
Am 18.01.10 18:28, schrieb Horacio Suarez: hello all: I need someting like a negative kerning to reduce some paragraphs length. I was reading the mails but I didn´t find it or was too complex for me. MkIV only: \definecharacterkerning[packed] \setupcharacterkerning[packed][factor=-.125

Re: [NTG-context] negative kerning

2010-01-18 Thread Thomas A. Schmitz
On Jan 18, 2010, at 6:46 PM, Wolfgang Schuster wrote: MkIV only: \definecharacterkerning[packed] \setupcharacterkerning[packed][factor=-.125] \starttext \input knuth \start \setcharacterkerning[packed] \input knuth \stop \stoptext Wolfgang Wow!! That is one

Re: [NTG-context] extra kerning do nothing

2009-12-21 Thread Hans Hagen
Andreas Harder wrote: Hi, the following used to work: \definecharacterkerning[negative] \setupcharacterkerning[negative][factor=-0.125] \starttext \input davis \blank {\setcharacterkerning[extrakerning]\input davis\relax} \blank {\setcharacterkerning[negative]\input davis\relax} \stoptext

Re: [NTG-context] extra kerning do nothing

2009-12-21 Thread Andreas Harder
Am 21.12.2009 um 13:40 schrieb Hans Hagen: Andreas Harder wrote: Hi, the following used to work: \definecharacterkerning[negative] \setupcharacterkerning[negative][factor=-0.125] \starttext \input davis \blank {\setcharacterkerning[extrakerning]\input davis\relax} \blank

Re: [NTG-context] extra kerning do nothing

2009-12-21 Thread Hans Hagen
Andreas Harder wrote: Am 21.12.2009 um 13:40 schrieb Hans Hagen: Andreas Harder wrote: Hi, the following used to work: \definecharacterkerning[negative] \setupcharacterkerning[negative][factor=-0.125] \starttext \input davis \blank {\setcharacterkerning[extrakerning]\input davis\relax} \blank

Re: [NTG-context] extra kerning do nothing

2009-12-21 Thread Andreas Harder
Am 21.12.2009 um 16:55 schrieb Hans Hagen: Andreas Harder wrote: Am 21.12.2009 um 13:40 schrieb Hans Hagen: Andreas Harder wrote: Hi, the following used to work: \definecharacterkerning[negative] \setupcharacterkerning[negative][factor=-0.125] \starttext \input davis \blank

Re: [NTG-context] extra kerning do nothing

2009-12-21 Thread Hans Hagen
Andreas Harder wrote: Am 21.12.2009 um 16:55 schrieb Hans Hagen: Andreas Harder wrote: Am 21.12.2009 um 13:40 schrieb Hans Hagen: Andreas Harder wrote: Hi, the following used to work: \definecharacterkerning[negative] \setupcharacterkerning[negative][factor=-0.125] \starttext \input davis

Re: [NTG-context] extra kerning do nothing

2009-12-21 Thread Andreas Harder
Am 21.12.2009 um 17:34 schrieb Hans Hagen: Andreas Harder wrote: Am 21.12.2009 um 16:55 schrieb Hans Hagen: Andreas Harder wrote: Am 21.12.2009 um 13:40 schrieb Hans Hagen: Andreas Harder wrote: Hi, the following used to work: \definecharacterkerning[negative] \setupcharacterkerning

Re: [NTG-context] extra kerning do nothing

2009-12-21 Thread Hans Hagen
Andreas Harder wrote: Am 21.12.2009 um 17:34 schrieb Hans Hagen: Andreas Harder wrote: Am 21.12.2009 um 16:55 schrieb Hans Hagen: Andreas Harder wrote: Am 21.12.2009 um 13:40 schrieb Hans Hagen: Andreas Harder wrote: Hi, the following used to work: \definecharacterkerning[negative

[NTG-context] extra kerning do nothing

2009-12-20 Thread Andreas Harder
Hi, the following used to work: \definecharacterkerning[negative] \setupcharacterkerning[negative][factor=-0.125] \starttext \input davis \blank {\setcharacterkerning[extrakerning]\input davis\relax} \blank {\setcharacterkerning[negative]\input davis\relax} \stoptext Is it obsolete